package com.relytosoft.mizar.media.camera.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * @author wss
 * @version 1.0
 * @date 2022/6/15 14:50
 */
@TableName("VID_DOWNLOAD_LOG")
@ApiModel("下载日志表")
public class DownLoadLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", required = true)
    @TableField("ID")
    @TableId(value = "ID", type = IdType.AUTO)
    @NotNull(message = "不能为空")
    private Integer id;

    @ApiModelProperty(value = "任务名称")
    @TableField("TASK_NAME")
    private String taskName;

    @ApiModelProperty(value = "文件大小")
    @TableField("FILE_SIZE")
    private String fileSize;

    @ApiModelProperty(value = "下载状态")
    @TableField("STATE")
    private Integer state;

    @ApiModelProperty(value = "")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "状态", required = true)
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "资源地址", required = true)
    @TableField("RESOURCE_URL")
    private String resourceUrl;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    @Override
    public String toString() {
        return "DownLoadLog{" +
                "id=" + id +
                ", taskName='" + taskName + '\'' +
                ", fileSize='" + fileSize + '\'' +
                ", state=" + state +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                ", resourceUrl='" + resourceUrl + '\'' +
                '}';
    }
}
